<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/js/public/Validform/css/Validform.css"/>
<link rel="stylesheet" type="text/css" href="${ctx}/js/public/Validform/css/right_yz.css"/>
 <script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
 <script language="JavaScript" type="text/javascript" src="${ctx}/js/public/Validform/Validform_v5.3.2.js"></script>
 <script language="JavaScript" type="text/javascript" src="${ctx}/js/public/Validform/right_Validform_v5.3.2_config.js"></script>
 <script type="text/javascript" src="${ctx}/js/extjs/ext-base.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ext-all.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ui/ext-ui.js"></script>
<script type="text/javascript" src="${ctx}/js/public/console.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ux/Toast.js"></script>
<script>
var cfg = {cxt:'${ctx}'};
<c:if test="${not empty entity}">
	<c:set var="url" value="goods/update.action"/>
</c:if>
<c:if test="${ empty entity}">
<c:set var="url" value="goods/add.action"/>
</c:if>
</script>
</head>
<body>
<div  id="table_form_div" class="table_form1">
<form  action="${ctx}/${url}" method="post" id="formobj" >
 <input type="hidden" id="subBtn"   />
 <input type="hidden" id="backTip"  value="操作成功" />
  <table class="table-form" width="100%">
   <tbody>
      <tr>
	       <td width="15%" class="table-th">编码<font color="red">*</font></td>
	       <td class="table-td"  width="35%">
	           <input type="text" id="code"  class="input-text" style="width:90%;" name="code" value="${entity.code}" maxlength="16"   datatype="*" />
	       </td>
	       <td width="15%" class="table-th">名称<font color="red">*</font></td>
	       <td class="table-td"  width="35%">
	           <input type="text" id="name"  class="input-text" style="width:90%;" name=name value="${entity.name}" maxlength="64"   datatype="*" />
	       </td>
	  </tr>
	   <tr>
           <td width="15%" class="table-th">货物类型<font color="red">*</font></td>
           <td class="table-td" width="35%">
           		<input type="hidden" id="categoryId" name="category.id" value="${entity.category.id }" />
	           　		<input type="hidden" id="categoryName"   value="${entity.category.name }" />
	       		<span id="sp_goodsCategory"/>
           </td>
	      <td width="15%" class="table-th">货物安全卡<font color="red">*</font></td>
	      <td class="table-td" width="35%">
	      		<input type="hidden" id="safetyCardId" name="safetyCard.id" value="${entity.safetyCard.id }" />
	           　		<input type="hidden" id="safetyCardName"   value="${entity.safetyCard.name }" />
	       		<span id="sp_safetyCard"/>
	      </td>
      </tr>
     <tr>
      <td width="15%" class="table-th">应急方案<font color="red">*</font></td>
	       <td class="table-td" colspan="3">
	           <textArea id="emergencyPlan"  class="textarea" style="width:90%;" cols="80" rows="10" name="emergencyPlan"  maxlength="512"   datatype="*" >${entity.emergencyPlan }</textArea>
	       </td>
     </tr>
     <tr>
      <td width="15%" class="table-th">备注</td>
	       <td class="table-td" colspan="3">
	           <textArea id="remark"  class="textarea" style="width:90%;" cols="75" rows="6" name="remark"  maxlength="512" >${entity.remark }</textArea>
	       </td>
     </tr>
	 </tbody>
  </table>
   <input type="hidden" id="id"  name="id" value="${entity.id}" />
  </form>
  </div>
  <script type="text/javascript" src="${ctx}/js/app-web/biz/goods/goodsForm.js"></script>
  </body>
  </html>
  